import logging

import requests
from fake_useragent import UserAgent

wd = input("请输入关键字：")

logging.warning(f'正在搜索"{wd}"相关内容')

url = 'https://www.baidu.com/s?'

headers = {
    'User-Agent': UserAgent().random
}

params = {
    'wd': wd
}

response = requests.get(url, headers=headers, params=params)
print(response.content.decode())
